<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>plugins</title>
</head>
<body>
    
    <script>
        
        (function () {

            var Func = function (options={}) {
                this.init(options);
            }

            Func.prototype = {
                init: function (s) {
                    for (const key in s) {
                        if (s.hasOwnProperty(key)) {
                            console.log(key);
                        }
                    }
                }
            };

            window.Func = Func;


        })();
        
        let func = new Func({
            a: 1,
            b: 10
        });

        console.log(func);
    </script>

</body>
</html>